import request from '@/utils/request';


/**
 * 题库查询
 * @param {*} params 
 * @returns 
 */
export const queryLibList = params => {
    return request.get('/sys/sysQuestionStore/query', params);
}
/**
 * 题库新增
 * @param {*} data 
 * @returns 
 */
export const addLibInfo = data => {
    return request.post('/sys/sysQuestionStore/insert', data);
}
/**
 * 题库更新
 * @param {*} data 
 * @returns 
 */
export const updateLibInfo = data => {
    return request.post('/sys/sysQuestionStore/update', data);
}
/**
 * 题库删除（素材库下面有素材时 ，不允许删）
 * @param {*} data 
 * @returns 
 */
export const deleteLibInfo = data => {
    return request.post(`/sys/sysQuestionStore/delete`, data)
}

/**
 * 试题查询接口
 */
export const remoteList = params => {
    return request.get('/sys/sysQuestion/query', params);
};
/**
 * 试题新增
 */
export const addInfo = data => {
    return request.post('/sys/sysQuestion/insert', data);
};

/**
 * 试题修改
 */
export const updateInfo = data => {
    return request.post('/sys/sysQuestion/update', data);
};

/**
 * 试题删除
 */
export const deleteInfo = data => {
    return request.post(`/sys/sysQuestion/delete`, data)
}

export default {
    remoteList
}